package net.maergaiyun.service;

import net.maergaiyun.controller.request.TrafficPageRequest;
import net.maergaiyun.controller.request.UseTrafficRequest;
import net.maergaiyun.model.EventMessage;
import net.maergaiyun.util.JsonData;
import net.maergaiyun.vo.TrafficVO;

import java.util.Map;

public interface TrafficService {
    void handleTrafficMessage(EventMessage eventMessage);

    Map<String, Object> pageAvailable(TrafficPageRequest request);

    TrafficVO detail(Long trafficId);

    boolean deleteExpireTraffic();

    JsonData reduce(UseTrafficRequest trafficRequest);
}
